package com.epfresh.supplier.entity;

import com.epfresh.api.utils.JsonUtils;

/**
 * @author wangzhanghuan
 * @version 1.0
 * @date create 17-9-21
 * @Description
 */

public class ProductClassify {


    /*{
        "id": 57,
        "name": "好吃的类",
        "storeId": 4,
        "businessBegin": "0:00:00",
        "businessEnd": "23:59:59",
        "sort": 0,
        "topCategoryId": 1,
        "status": 1,
        "quantity": null,
        "topCategoryName": null
    }*/


    String id;
    String name;
    String storeId;
    String businessBegin;
    String businessEnd;
    String sort;
    String topCategoryId;
    String status;
    String quantity;
    String counts;
    // "type" : "2"自建分类
    String type = "2";

    boolean isPlatType;

    boolean isSelect;
//    String topCategoryName;


    public boolean isSelect() {
        return isSelect;
    }

    public void setSelect(boolean select) {
        isSelect = select;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCounts() {
        if ("0".equals(counts)){
            return "";
        }
        return counts;
    }

    public void setCounts(String counts) {
        this.counts = counts;
    }

    public boolean isPlatType() {
        return isPlatType;
    }

    public void setPlatType(boolean platType) {
        isPlatType = platType;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    public String getBusinessBegin() {
        return businessBegin;
    }

    public void setBusinessBegin(String businessBegin) {
        this.businessBegin = businessBegin;
    }

    public String getBusinessEnd() {
        return businessEnd;
    }

    public void setBusinessEnd(String businessEnd) {
        this.businessEnd = businessEnd;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getTopCategoryId() {
        return topCategoryId;
    }

    public void setTopCategoryId(String topCategoryId) {
        this.topCategoryId = topCategoryId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getQuantity() {
        return quantity;
    }

    public void setQuantity(String quantity) {
        this.quantity = quantity;
    }


    @Override
    public String toString() {
        return JsonUtils.toJson(this);
    }
}
